package com.example.thirdhomework

import android.os.Bundle
import android.widget.TextView
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat

class SecondActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_second)

        // 获取Intent和TextView引用
        val intent = intent
        val textView = findViewById<TextView>(R.id.textView)

        // 设置TextView文本
        textView.text = intent.getStringExtra(FIRST_MSG)
    }
}